//
//  ConsulationAnsedListCell.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/22.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "ConsulationAnsedListCell.h"

@interface ConsulationAnsedListCell ()

/// viewModle
@property (nonatomic, readwrite, strong) ConsulationAnsedListCellModel *viewModel;

/// IBOutlet
@property (weak, nonatomic) IBOutlet UILabel* askLabel;
@property (weak, nonatomic) IBOutlet UILabel* answerLabel;
@property (weak, nonatomic) IBOutlet UILabel* timeLabel;
@property (weak, nonatomic) IBOutlet UILabel* answerNumLabel;

@end

@implementation ConsulationAnsedListCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

#pragma mark - bind data
- (void)bindViewModel:(ConsulationAnsedListCellModel *)viewModel
{
    self.viewModel = viewModel;
    
    @weakify(self);
    
    self.askLabel.text = self.viewModel.ask;
    self.answerLabel.text = self.viewModel.answer;
    self.timeLabel.text = self.viewModel.time;
    self.answerNumLabel.text = self.viewModel.answerNum;
}

@end
